function Event()
{
	this.list = new Array();

	this.fire = function( obj )
	{
		for( var i=0; i<this.list.length; ++i )
			this.list[i]( obj );
	}

	this.add = function( callback )
	{
		this.list.push( callback );
	}

	this.clear = function()
	{
		this.list = new Array();
	}
}